﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/ViewPageStandart.master" AutoEventWireup="true"
	CodeBehind="AccountProcessing.aspx.cs" Inherits="SiteLib.Login.AccountProcessing" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    <asp:Label runat="server" ID="lTitle" />
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphContent" runat="server">
	<div class="container2">
		<div id="left-div">
			<div class="post-wrapper">
				<div class="post">
					<div class="homepost-full">
						<h2 class="pageSubTitle">
							<asp:Label runat="server" ID="lblProcessingStatus" Text='<%$ Resources:UserSite, resUserData %>' />
						</h2>
						<asp:MultiView runat="server" ID="mvAccountProcessing">
							<asp:View runat="server" ID="vRegistration">
								<table class="registrationTable">
									<tr class="separate">
										<td class="td25">
											<asp:Label runat="server" ID="lblRegEmail" Text='<%$ Resources:UserSite, resEmail %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblRegEmailAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtEmail" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldEmailIsRequired" runat="server" ControlToValidate="txtEmail"
												ErrorMessage='<%$ Resources:UserSite, resEmailIsRequired %>' Display="None" ValidationGroup="vgRegistration"
												SetFocusOnError="true" />
											<asp:RegularExpressionValidator runat="server" ID="vldEmailRegex" ControlToValidate="txtEmail"
												ValidationExpression="([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})"
												ErrorMessage='<%$ Resources:UserSite, resIncorrectEmailFormat %>' Display="None"
												SetFocusOnError="true" ValidationGroup="vgRegistration" />
											<asp:CustomValidator runat="server" ID="vldEmailNotExists" ControlToValidate="txtEmail"
												ValidateEmptyText="True" ValidationGroup="vgRegistration" ErrorMessage='<%$ Resources:UserSite, resEmailIsExists %>'
												OnServerValidate="vldEmailNotExists_ServerValidate" Display="None" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblPassword" Text='<%$ Resources:UserSite, resPassword %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblPasswordAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtPassword" TextMode="Password" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldPasswordIsRequired" runat="server" ControlToValidate="txtPassword"
												ErrorMessage='<%$ Resources:UserSite, resPasswordIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblRepeatPassword" Text='<%$ Resources:UserSite, resRepeatPassword %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblRepeatPasswordAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtRepeatPassword" TextMode="Password" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldPasswordRepeatIsRequired" runat="server" ControlToValidate="txtRepeatPassword"
												ErrorMessage='<%$ Resources:UserSite, resPasswordRepeatIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
											<asp:CustomValidator runat="server" ID="vldPasswordsEquals" ValidateEmptyText="True"
												ValidationGroup="vgRegistration" OnServerValidate="vldPasswordsEquals_ServerValidate"
												ErrorMessage='<%$ Resources:UserSite, resPasswordsAreNotEquals %>' Display="None" />
										</td>
									</tr>
									<tr class="separate">
										<td class="td25">
											<asp:Label runat="server" ID="lblFirstName" Text='<%$ Resources:UserSite, resFirstName %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblFirstNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtFirstName" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldFirstNameIsRequired" runat="server" ControlToValidate="txtFirstName"
												ErrorMessage='<%$ Resources:UserSite, resFirstNameIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblMiddleName" Text='<%$ Resources:UserSite, resMiddleName %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblMiddleNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtMiddleName" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldMiddleNameIsRequired" runat="server" ControlToValidate="txtMiddleName"
												ErrorMessage='<%$ Resources:UserSite, resMiddleNameIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
									<tr>
										<td class="td25">
											<asp:Label runat="server" ID="lblLastName" Text='<%$ Resources:UserSite, resLastName %>' />
											<span class="asterisk">
												<asp:Label runat="server" ID="lblLastNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
											</span>
										</td>
										<td colspan="3" class="td75">
											<asp:TextBox runat="server" ID="txtLastName" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldLastNameIsRequired" runat="server" ControlToValidate="txtLastName"
												ErrorMessage='<%$ Resources:UserSite, resLastNameIsRequired %>' Display="None"
												ValidationGroup="vgRegistration" />
										</td>
									</tr>
								</table>
								<div class="tdSubmit">
									<asp:Button runat="server" ID="btnSaveAccessUser" UseSubmitBehavior="true" Text='<%$ Resources:UserSite, resSaveAccessUser %>'
										OnClick="btnSaveAccessUser_Click" ValidationGroup="vgRegistration" />
								</div>
							</asp:View>
							<asp:View runat="server" ID="vRemindPassword">
								<div class="userCenteredForm">
									<div class="userCenteredBlock">
										<div class="userCenteredTitle">
											<asp:Label runat="server" ID="lblRemindPasswordEmail" Text='<%$ Resources:UserSite, resEnterEmail %>' />
										</div>
										<div class="userCenteredControl">
											<asp:TextBox ID="txtRegisteredEmail" runat="server" MaxLength="200" />
											<asp:RequiredFieldValidator ID="vldRegisteredEmailIsRequired" runat="server" ControlToValidate="txtRegisteredEmail"
												ErrorMessage='<%$ Resources:UserSite, resEmailIsRequired %>' Display="None" SetFocusOnError="true"
												ValidationGroup="vgRemindPassword" />
											<asp:RegularExpressionValidator runat="server" ID="vldRegisteredEmailRegex" ControlToValidate="txtRegisteredEmail"
												ValidationExpression="([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})"
												ErrorMessage='<%$ Resources:UserSite, resIncorrectEmailFormat %>' Display="None"
												SetFocusOnError="true" ValidationGroup="vgRemindPassword" />
											<asp:CustomValidator runat="server" ID="vldRegisteredEmailExists" ControlToValidate="txtRegisteredEmail"
												ValidateEmptyText="True" ValidationGroup="vgRemindPassword" ErrorMessage='<%$ Resources:UserSite, resEmailIsNotExists %>'
												OnServerValidate="vldRegisteredEmailExists_ServerValidate" Display="None" />
										</div>
									</div>
									<div class="userCenteredBlock">
										<div class="userCenteredSubmit">
											<asp:Button runat="server" ID="btnRemindPassword" Text='<%$ Resources:UserSite, resSendPassword %>'
												OnClick="btnRemindPassword_Click" ValidationGroup="vgRemindPassword" />
										</div>
									</div>
								</div>
							</asp:View>
							<asp:View runat="server" ID="vResetPassword">
								<div class="infoPanelCentered">
									<asp:Label runat="server" ID="lblResetPasswordStatus" />
								</div>
							</asp:View>
						</asp:MultiView>
					</div>
				</div>
			</div>
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphSubMenu" runat="server">
	<div class="sidebar-box">
		<h2>
			<asp:Label ID="lblSideBarCaption" runat="server" Text='<%$ Resources:UserSite, resAccount %>' />
		</h2>
		<ul>
			<li>
				<asp:HyperLink runat="server" ID="hlRegistration" Text='<%$ Resources:UserSite, resRegistration %>'
					NavigateUrl="/Login/AccountProcessing.aspx?view=Registration" />
			</li>
			<li>
				<asp:HyperLink runat="server" ID="hlRemindPassword" Text='<%$ Resources:UserSite, resRemindPassword %>'
					NavigateUrl="/Login/AccountProcessing.aspx?view=RemindPassword" />
			</li>
		</ul>
	</div>
	<asp:ValidationSummary runat="server" ID="vsSummaryRegistration" DisplayMode="BulletList"
		ValidationGroup="vgRegistration" ShowMessageBox="True" ShowSummary="False" />
	<asp:ValidationSummary runat="server" ID="vsSummaryRemindPassword" DisplayMode="BulletList"
		ValidationGroup="vgRemindPassword" ShowMessageBox="True" ShowSummary="False" />
</asp:Content>
